package com.lwisn.demo.filesystem.dao;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class DecodingDaoImpl implements DecodingDao {

	private final Logger logger = LoggerFactory
			.getLogger(DecodingDaoImpl.class);
	
	public FileInputStream readFile(String path) {

		FileInputStream fis = null;
		
		try {
			fis = new FileInputStream(new File(path));
		} catch (FileNotFoundException e) {
			logger.error("can't error read file", e);
		}

		return fis;

	}


}
